package com.gl.glgateway.controller;

import com.gl.glgateway.utils.ResultHelper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class FallbackController {

    @GetMapping("/defaultfallback")
    public ResultHelper defaultfallback() {
        log.info("请求被熔断.");
        return ResultHelper.failed(404,"服务异常");
    }
}
